import 'package:bot_toast/bot_toast.dart';
import 'package:fluwx/fluwx.dart';
import 'package:shopping_group/base/base_constant.dart';

class WxPayeUtil {
  static void initFluwx() async {
    await registerWxApi(
        appId: BaseConstant.appId,
        doOnAndroid: true,
        doOnIOS: true,
        universalLink: "https://your.univerallink.com/link/");
    var result = await isWeChatInstalled;
    print("is installed $result");
    if (!result) {
      BotToast.showText(text: '未安装微信，无法使用微信功能');
    }
  }
}
